[h-keyboard] button {
  background-color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  font-family: "comic sans ms";
  font-size: 0.6rem;
  padding: 0;
  /*禁止长按选中文本,无效果*/
  user-select: none;
  -ms-user-select: none; /* IE 11 */
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
}

[h-keyboard] button:active {
  box-shadow: 0 4px 8px 0 rgba(79, 239, 239, 61), 0 3px 10px 0 rgba(0, 255, 255, 61);
  border: 0;
}

[h-keyboard] .key-bg {
  background-color: #cccccc;
  padding: 2px 5px 5px;
  width: 626px;
  border-radius: 10px;
}

[h-keyboard] .key-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 3px 0;
}

[h-keyboard] .key-bg button {
  width: 38px;
  height: 38px;
}

/* btnWidth*(2/3)=*0.6 */
[h-keyboard] .key-bg .btnWidth-x0d6 {
  width: 22px;
}

[h-keyboard] .key-bg .btnWidth-x1 {
  width: 38px;
}

[h-keyboard] .key-bg .btnWidth-x1d3 {
  width: 49px;
}

[h-keyboard] .key-bg .btnWidth-x1d5 {
  width: 57px;
}

[h-keyboard] .key-bg .btnWidth-x1d8 {
  width: 68px;
}

[h-keyboard] .key-bg .btnWidth-x2 {
  width: 76px;
}

[h-keyboard] .key-bg .btnWidth-x2d2 {
  width: 83px;
}

[h-keyboard] .key-bg .btnWidth-x2d6 {
  width: 99px;
}

[h-keyboard] .key-bg .btnWidth-x6d6 {
  width: 250px;
}

/*数字键盘*/
[h-keyboard] .num-board {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 3px;
  margin-left: 3px;
  margin-top: 38px;
  width: 180px;
  height: 210px;
}

[h-keyboard] .num-board button {
  width: auto;
  height: auto;
}

[h-keyboard] .mediaButton {
  letter-spacing: -2px;
  font-size: 12px;
  font-weight: bold;
}

/*指示灯*/
[h-keyboard] .lamp-board {
  background-color: #fff;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 5px 0 rgba(0, 0, 0, 0.19);
  border-radius: 10px;
  font-size: 0.6rem;
  padding: 0 5px;
  white-space: nowrap;
}

[h-keyboard] .lamp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  height: 50%;
}

[h-keyboard] .lamp-on {
  color: #03a9f4;
}

[h-keyboard] .lamp-off {
  color: gray;
}

/*设置弹窗*/
[h-keyboard] .bounds-slider {
  display: grid;
  grid-template-columns: 80px auto;
  grid-gap: 10px;
  margin-top: 10px;
  height: 100%;
}

[h-keyboard] #floating-setting-button {
  z-index: 2888;
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 1rem;
  padding: 6px 9px !important;
  border-radius: 50%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
